package main

import (
	"fmt"
	"log"
	"os"
	"path/filepath"
	"strings"
)

func main() {
	fmt.Println("路径为：", AppDirPath())
	
	newStr := strings.Join([]string{strings.ToUpper("XuanYuan"), strings.ToUpper("影视"), "DATA", "NEW"}, "_")
	log.Println("字符串为：", newStr)
}
func AppDirPath() string {
	dir, _ := filepath.Abs(filepath.Dir(os.Args[0]))
	//dir = strings.ReplaceAll(dir, "\\", "/")
	return dir
}
